x86/HVM: patch vINTR indirect calls through hvm_funcs to direct ones
authorJan Beulich <jbeulich@suse.com>
Fri, 17 May 2019 12:38:07 +0000 (14:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 17 May 2019 12:38:07 +0000 (14:38 +0200)
commitb553960210bcc3c16413118d97cd8fa0e778c85a
tree457390ba6455397645442c029478941de5c761b0
parent26c871bc2c4c186a92f5a83200ed46b39766c1f6
x86/HVM: patch vINTR indirect calls through hvm_funcs to direct ones

While not strictly necessary, change the VMX initialization logic to
update the function table in start_vmx() from NULL rather than to NULL,
to make more obvious that we won't ever change an already (explicitly)
initialized function pointer.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/vlapic.c
xen/arch/x86/hvm/vmx/vmx.c